import request from '@/utils/request'

export const RolePermissionApi = {

  /**
     *  获取角色权限
     * @returns
     */
  getIdArr: (roleId) => {
    return request({
      url: '/manage/system/rolePermission/getIdArr',
      params: { roleId },
      method: 'get'
    })
  },

  /**
     *  插入
     * @returns
     */
  insert: (data) => {
    return request({
      url: '/manage/system/rolePermission/insert',
      data,
      method: 'post'
    })
  }
}
